package com.leha.core.dao;

import com.leha.core.entity.mybatis.LhRank;
import com.leha.core.entity.vo.UserInfoAndRank;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LhUserCustomMapper {
    int updateUserScore(@Param("uid")Integer uid, @Param("score") Integer score);
    LhRank getUserTodayRank(@Param("gameId") Integer gameId, @Param("uid") Integer uid);

    List<UserInfoAndRank> getGameDailyRank(@Param("gameId") Integer gameId, @Param("limit")Integer limit);
    List<UserInfoAndRank> getGameWeeklyRank(@Param("gameId") Integer gameId, @Param("limit")Integer limit);

    UserInfoAndRank getUserTodayRankIndex(@Param("gameId") Integer gameId, @Param("uid") Integer uid);
    UserInfoAndRank getUserWeeklyRankIndex(@Param("gameId") Integer gameId, @Param("uid") Integer uid);

    Integer getUserPlayCnt(@Param("uid") Integer uid);
    Integer getUserRewardCnt(@Param("uid") Integer uid);

    Integer getShareTimes(@Param("uid") Integer uid);

    List<UserInfoAndRank> getGameTimesRank(@Param("gameId") Integer gameId, @Param("limit")Integer limit);
    List<UserInfoAndRank> getRewardsRank(@Param("gameId") Integer gameId, @Param("limit")Integer limit);
}
